package queue.model;

import java.util.Date;
import queue.model.InspectionStation.ItemDeparture;

/**
 *
 * @author mostafa
 */
public class Item {

    private boolean good;
    private Date arrivateDate;
    private Date departureDate;
    private int data;
    private ItemDeparture departure;

    public Item(int data, Date arrivateDate) {
        this.arrivateDate = arrivateDate;
        this.data = data;
    }

    public boolean isGood() {
        return good;
    }

    public void setGood(boolean good) {
        this.good = good;
    }

    public Date getArrivateDate() {
        return arrivateDate;
    }

    public void setDepartureDate(Date departureDate) {
        this.departureDate = departureDate;
    }

    public Date getDepartureDate() {
        return departureDate;
    }

    @Override
    public String toString() {
        return Integer.toString(data);
    }

    public void setDeparture(ItemDeparture departure) {
        this.departure = departure;
    }

    public ItemDeparture getDeparture() {
        return this.departure;
    }

}
